import config from "@/config"
import http from "@/utils/request"

export default {
	goodsList: {
		url: `${config.API_URL}/merchant/bargainGoods/index`,
		name: "获取砍价商品列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	add: {
		url: `${config.API_URL}/merchant/bargainGoods/add`,
		name: "新增砍价商品",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	edit: {
		url: `${config.API_URL}/merchant/bargainGoods/edit`,
		name: "编辑砍价商品",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	getEditInfo: {
		url: `${config.API_URL}/merchant/bargainGoods/edit`,
		name: "编辑砍价商品",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	del: {
		url: `${config.API_URL}/merchant/bargainGoods/del`,
		name: "删除砍价商品",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	orderList: {
		url: `${config.API_URL}/merchant/bargainOrder/index`,
		name: "获取订单列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	orderDetail: {
		url: `${config.API_URL}/merchant/bargainOrder/detail`,
		name: "获取订单详情",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	}
}
